<?php

return CMap::mergeArray(
    require(dirname(__FILE__).'/main.php'),
    array(
        'components' => array(
//            'errorHandler'=>array(
//                // use 'site/error' action to display errors
//                'errorAction'=>'backend/site/error',
//            ),

            'user' => array(
                'loginUrl' => array('/backend/site/login'),
                'stateKeyPrefix' => 'backend',
            ),

            'urlManager'=>array(
                'urlFormat'=>'path',
//                'showScriptName'=>false,
                'rules'=>array(
                    'backend'=>'site/index',
                    'backend/<_c>'=>'<_c>',
                    'backend/<_c>/<_a>'=>'<_c>/<_a>',
                ),
            ),
        ),
    )
);